﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Sauces.Bussinees.Entities.Caja
{
   public  class Cliente
    {
        public Int32 Id { get; set; }

        [Required(ErrorMessage = "Ingrese el Nombre")]
        public string Nombre { get; set; }
        [Required(ErrorMessage = "Ingrese el Apellido")]
        public string Apellidos { get; set; }

  
        [Range(100000, 99999999, ErrorMessage = "DNI Incorrecto")]      
        public string Dni { get; set; }

        [Required(ErrorMessage = "Ingrese el Telefono")]
        public string Telefono { get; set; }

        [Range(10000000000, 99999999999, ErrorMessage = "DNI Incorrecto")]      
        public string Ruc { get; set; }
        public string RazonSocial { get; set; }

        [Required(ErrorMessage = "Ingrese la Direccion")]
        public string Direccion { get; set; }

        public string NombresCompletos { get { return Nombre + ", " + Apellidos; } }      

        public List<Boleta> Boleta { set; get; }
        public List<Factura> Factura { set; get; }

    }
}
